package com.metaera.app.controller.view;

import android.widget.TextView;

import com.metaera.app.R;
import com.metaera.app.controller.view.core.INetworkRequestView;

public class FollowAuthorView implements INetworkRequestView<Object> {

    private final TextView mTvFollow;

    public FollowAuthorView(TextView textView){
        mTvFollow = textView;
    }

    @Override
    public void successful(Object data) {
        mTvFollow.setSelected(!mTvFollow.isSelected());
        mTvFollow.setText(mTvFollow.isSelected() ? R.string.followed : R.string.follow);
    }

}
